﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CExample07_Sharp
{
    class Student
    {
        static string name;
        public void SetName(String n)
        {
            name = n;
        }
        public string GetName()
        {
            return name;
        }
    }
    public class Program
    {
        public static void Main(string[] args)
        {
            Student sdA = new Student();
            Student sdB = new Student();
            sdA.SetName("Nguyen Van A");
            sdB.SetName("Nguyen Van B");
            Console.WriteLine("Name is: " + sdA.GetName());
            Console.WriteLine("Name is: " + sdB.GetName());
        }
    }
}
